#ifndef CONVERT_H
#define CONVERT_H
#include <string>
#include <sstream>
using namespace std;
namespace own
{
    namespace convert
    {
        //有符号数值转字符串
        
        inline string Tostring(long long n); // longlong转换到string 

        inline string Tostring(long n);		 // long转换到string

        inline string Tostring(int n);		 // int转换到string

        inline string Tostring(short n);	 // short转换到string


        //字符串之间的转换

        inline string Tostring(const char *str);

        //无符号数值转字符串

        inline string Tostring(unsigned long long n);//...
        
        inline string Tostring(unsigned long n);//...

        inline string Tostring(unsigned int n);//...

        inline string Tostring(unsigned short n);//...

        //字符串转有符号数值

        inline long long Tollong(string str);//...

        inline long Tolong(string str);//...

        inline int Toint(string str);//...

        inline short Toshort(string str);//...

        //字符串转无符号整形

        inline unsigned long long Tounllong(string str);//...

        inline unsigned long Tounlong(string str);//...

        inline unsigned int Tounint(string str);//...

        inline unsigned short Tounshort(string str);//...

        //浮点数转换

        inline string Tostring (float n);//...

        inline string Tostring (double n);//...

        inline string Tostring (long double n);//...

        inline float Tofloat (string str);//...

        inline double Todouble (string str);//...

        inline long double Toldouble (string str);//...
    }
}
#endif